<div class="simple-content no-padding">
	<div class="row">
		<div class="col-md-12">
          <div class="box-header header-color-blue">
          	 <h5 class="bigger lighter">
                    <i class="icon-table"></i>
                 新增车辆
             </h5>
          </div>	
          <div class="box-body">
                <form name="createForm" class="form-horizontal group-border-dashed" action="" method="POST" novalidate>
          		<div class="row">
					  <div class="col-md-12 col-lg-12">

					      <div class="form-group">
								<label class="col-sm-2 control-label">运营路线</label>
								<div class="col-sm-3">
									<select ui-select name="operationPath" ng-model="tramAddPlan.path" required data-placeholder="请选择" style="width: 100%;">
										<option ng-repeat="operationPath in operationPaths" value="{{operationPath.path}}">{{operationPath.name}}</option>
									</select>
								</div>
					      </div> 
						  <div class="form-group">
						  		<label class="col-sm-2 control-label">起始站</label>
						  	 	<div class="col-sm-3">
						  	 		<select ui-select  name="startTerminus" required ng-model="tramAddPlan.startTerminus" data-placeholder="请选择" style="width: 100%;">
										<option ng-repeat="terminus in terminuses" value="{{terminus.code}}" >{{terminus.code|stationName}}</option>
									</select>
								</div>
								<label class="col-sm-2 control-label">发车时间</label>
						  	 	<div class="col-sm-3">
						  			<div class="input-group bootstrap-timepicker col-md-5 col-xs-7" data-link-field="startTime" style="width:100%">
										<input ui-timepicker id="startTime" name="startTime"  ng-model="tramAddPlan.startTime"  class="form-control" size="16" type="text" readonly="readonly">
										<span class="input-group-addon btn btn-primary"><span class="glyphicon glyphicon-time"></span></span>
									</div>
								</div>
					      </div>
					      <div class="form-group">
							  <label class="col-sm-2 control-label">平均速度(km/h)</label>
							  <div class="col-sm-3">
									<input name="avgSpeed" type="text" class="form-control" required ng-integer ng-min="0" ng-max="100" placeholder="请输入整数字" ng-model="tramAddPlan.avgSpeed" placeholder="请输入0到80之间整数" >
									<span class="error" ng-show="createForm.avgSpeed.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
							  </div>	
							  <label class="col-sm-2 control-label">平均停站时间(s)</label>
							  <div class="col-sm-3">
									<input name="avgStopTime" type="text" ng-integer ng-min="0" ng-max="50" required class="form-control" placeholder="请输入0到50之间整数" ng-model="tramAddPlan.avgStopTime" >
									<span class="error" ng-show="createForm.avgStopTime.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
							  </div>	

					      </div> 

					      <div class="form-group">
						   <label class="col-sm-2 control-label">折返时间(min)</label>
						   <div class="col-sm-3">
								<input name="returnTime"  type="text" ng-integer ng-min="0" ng-max="50" class="form-control" placeholder="请输入0到50之间整数" ng-model="tramAddPlan.reentryTime" >
								<span class="error" ng-show="createForm.returnTime.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
						   </div>	
						  <label class="col-sm-2 control-label">运行次数</label>
						   <div class="col-sm-3">
								<input name="runTimes" type="text" ng-integer ng-min="0" ng-max="20" class="form-control"  ng-model="tramAddPlan.runTimes" placeholder="请输入0到20之间整数">
								<span class="error" ng-show="createForm.downTotal.$invalid">输入不合法或不在有效范围内,请输入0到20之间整数</span>
						  </div>						   

					      </div>
						  <div id="limitDate" class="form-group">

					      </div>
				    </div>
				</div>
            </form>
	        <footer class="panel-footer text-right">
                <button type="button" class="btn btn-primary" ng-click="add()" ng-disabled="createForm.$invalid">提交</button>
			    <a ng-click="cancel()" class="btn btn-default">取消</a>
		    </footer>	
		  </div>
	  </div>
	</div>
</div>